In the Netbeans installation directory of Ubuntu9.04, there is a etc/netbeans. conf file, open it with a text editor, on line 6th you can find such code: netbeans_default_options = "-J-client-J-Xverify: none-J-Xss2m-J-Xms32m-J-XX: PermSize = 32m-J-XX: maxPermSize = 200 m-
There is an etc/Netbeans. conf file in the netbeans installation directory of Ubuntu 9.04. Open it in a text editor. You can find this code in line 6th:
Netbeans_default_op
application server process. The following are optional command line parameters that can be entered in the "common JVM Parameters" field. If you enter multiple independent variables, enter a space between them.Important: If this parameter indicates that it is only applicable to IBM developer kit, you cannot use this parameter for another JVM, such as Sun JDK or hp jdk.-XquickstartYou can use-xquickstart to perform initial compilation at an optimization level lower than the default mode. Then, ba
1. Disable validate
Cancel automatic validationThere are a bunch of validation items, such as XML, JSP, JSF, and JS. We don't have to perform automatic verification on all of them. We only need to perform manual verification when necessary, and the speed will immediately increase to several levels!Cancellation Method:Windows --> perferences --> myeclipse --> ValidationExcept for all the check boxes under manual, none of them are selected.Manual verification method:On the file to be verified, rig
-xverify: None-XX: + useparallelgc-XX: permsize = 20 m-XX: maxnewsize = 32 m-XX: newsize = 32 m-xms128m-xmx256m
Parameter annotation:
[-Debug options-VM javaw.exe] displays the current JVM memory usage (NOTE: For details, see "Show your eclipse JVM current memory usage" below).
[-Nl] language: English en_us Simplified Chinese zh_cn
[-Clean] clears the buffer when Eclipse IDE is started. In general, removing this parameter is faster without updating th
Document directory
Set the workspace location to the current working directory
Use-data to set a specific workspace location
Use-VM to set Java VM
Turn: http://hi.baidu.com/kinble/blog/item/5987be822790be91f703a640.html
Eclipse.exe-vmargs-xverify: None-XX: + useparallelgc-XX: permsize = 20 m-xms64m-xmx256mSet the workspace location to the current working directory
In this solution, the workspace location is calledWorkspaceDirectory.
The easies
work either. Later, I tried various methods and found that there is a Netbeans under The etc directory under the netbeans installation directory. conf with Netbeans startup parameters: netbeans_default_options = "-J-Dcom.sun.aas.installRoot = \" C: \ Program Files \ glassfish-v2ur2 \ "-J-client-J-Xss2m-J-Xms32m-J-XX: permSize = 32 m-J-XX: MaxPermSize = 200 m-J-Xverify: none-J-Dapple.laf.useScreenMenuBar = true-J-Dsun.java2d.noddraw = true ". Add the
the following content in commEnv. bat or commEnv. sh and modify it.(1) Windows environment:
Java code
: Sun
If "% PRODUCTION_MODE %" = "true" goto sun_prod_mode
Set JAVA_VM =-client
Set MEM_ARGS =-Xms32m-Xmx200m-XX: MaxPermSize = 128 m
Set JAVA_OPTIONS = % JAVA_OPTIONS %-Xverify: none
Goto continue
: Sun_prod_mode
Set JAVA_VM =-server
Set MEM_ARGS =-Xms32m-Xmx200m-XX: MaxPermSize = 128 m
Goto continue
Modify the memory. Here, select the J
. Theoretically, the memory of netbeans in MB should run very fast. There are not many people who know the solution, which is the main reason why many people cannot solve this problem.Solution:
1. Disable powerplay. In the control panel, choose Display Properties> advanced settings.Or2. Use the VM parameter-dsun. java2d. ddoffscreen = false, that is, the startup command parameter of netbeans/etc/netbeans. conf:Netbeans_default_options = "-J-Xms64m-J-Xmx256m-J-XX: permsize = 32 m-J-XX: maxpermsiz
Netbeans looked uncomfortable with the font in Ubuntu. It was not clear a long line. After checking it, it was found that the font was de-toothed and a solution was found on the Internet:
Find the netbeans settings file, you can use the command locate (whereis) netbeans. conf, usually in/usr/local/netbeans-6.8/etc/netbeans. confModify the Configuration:Sudo VI/usr/local/netbeans-6.8/etc/netbeans. confThe default content is:# $ {Home} will be replaced by JVM user. Home System PropertyNetbeans_d
Turn: http://developer.51cto.com/art/200906/128742.htm
Problem: the default operating interfaces of netbeans downloaded from the official website, both Chinese and English, are Chinese, and the font is disgusting.
Cause: netbeans automatically sets the interface language based on the local operating system and does not provide the changed function.
Objective: to change the Chinese version of netbeans to English and enable the system to support Chinese.
Solution:
Enter netbeans 6.5 \ etc
app uses a large number of third-party jar filesThis error message is generated when the default jvm size (4 MB) is exceeded.
Solution: manually set the MaxPermSizeModify TOMCAT_HOME/bin/catalina. shAdd the following lines to "echo" Using CATALINA_BASE: $ CATALINA_BASE:JAVA_OPTS = "-server-XX: PermSize = 64 M-XX: MaxPermSize = 128 mSuggestion: Move the same third-party jar files to the tomcat/shared/lib directory to reduce the memory usage of jar files.
Java. lang. OutOfMemoryError Exception
contains many classes, the permgen space error may occur,This error is common when the web server pre-compile the JSP. If your web app uses a large number of third-party jar filesThis error message is generated when the default JVM size (4 MB) is exceeded.
Solution: manually set the maxpermsizeModify tomcat_home/bin/Catalina. ShAdd the following lines to "Echo" using catalina_base: $ catalina_base:Java_opts = "-server-XX: permsize = 64 m-XX: maxpermsize = 128 mSuggestion: Move the same third-
1. default encoding settings:
1. Find the ETC folder under the netbeans installation directory. My files are D: \ Program Files \ netbeans 6.8 \ etc.
2. Open the netbeans. conf (netbeans configuration file, which reads the configuration parameters from this file when you start netbeans ..
3. Find netbeans_default_options = (My rows are in line 5th), for example, the line in blue.
4. add-J-Dfile.encoding = GBK (with a space in front) to the last line of the last line found in the pr
I have made major changes to ictclas4j and hope to greatly improve the speed of word segmentation, because the original speed is almost useless. However, I am very disappointed by the performance test plug-in tptp of Eclipse, which is intolerable for slow loading of big data, while the performance test of netbeans is not bad, at least I can start myProgram. Therefore, after modifying the program in eclipse, perform a performance test under netbeans.
The problem is that when the dictionary libra
when there is no special requirement, currently, NIO can basically cover all functions of old IO. Of course, NIO also provides N new functions ).
Test Environment
Eclipse (Juno) JVM (Sun JDK1.7) parameters:-Xms1536m-Xmx1536m-Xverify: none-XX: + UseParallelGC-XX: PermSize = 128M-XX: MaxPermSize = 128MOS parameter: Win7 64Bit + 4 GB physical disk space is sufficient
Test code
Import java. io. fileInputStream; import java. io. fileNotFoundExcept
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.